﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：Program.cs
// 功能描述：TongTongMall.MallWeb.Test
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using Castle.MicroKernel.Registration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Dependecy;

using TongTongMall.Modules;
using TongTongMall.TestBase.TestBase.Modules;

namespace TongTongMall.MallWeb.Test
{
    class Program
    {
        protected static IIocManager LocalIocManager { get; private set; }



        private static TongTongMallBootstrapper _bootstrapper { get; set; }
        static void Main(string[] args)
        {


            LocalIocManager = new IocManager();

            LocalIocManager.IocContainer.Register(Component.For<IModuleFinder, TestModuleFinder>().LifestyleTransient());

            _bootstrapper = new TongTongMallBootstrapper(LocalIocManager);
            _bootstrapper.Initialize();



            Console.ReadKey();
        }
    }
}
